<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
    <head>
        <title>Hello World!</title>
    </head>
    <body>
        <b>测试几个thymeleaf语法</b>
        <h1 th:inline="text">Hello.v.2</h1>
        <p th:text="${hello}"></p>

        <!--
        {index = 0, count = 1, size = 4, current = createTime=Sun Aug 09 14:27:03 CST 2020} ======= createTime=Sun Aug 09 14:27:03 CST 2020
        {index = 1, count = 2, size = 4, current = id=1} ======= id=1
        {index = 2, count = 3, size = 4, current = userName=rjj} ======= userName=rjj
        {index = 3, count = 4, size = 4, current = pwd=231231} ======= pwd=231231
        -->
        <ul th:each="l : ${list}">
           <span th:each="k,v : ${l}">
               <span th:text="${v}"></span>
               =======
               <span th:text="${k}"></span><br/>
           </span>
        </ul>


        <!--
          List<Record> 数据 === ${list}
          jfinal的Record遍历起来比较麻烦  <input th:each="entry : ${lm.columns}" th:value="${entry.value}" th:name="${entry.key}"><br/>
        -->
        <ul th:each="lm : ${list}">
            <input th:each="entry : ${lm}" th:value="${entry.value}" th:name="${entry.key}"><br/>
            <span th:each="entry : ${lm}" th:text="${entry.key}+${entry.value}"></span><br/>
            <span th:each="entry : ${lm}" th:text="${entry.value}"></span><br/>
        </ul>



        <a href="/ex/1">下载excel测试数据</a>

    </body>
</html>
